<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .father {
            display: flex;
            width: 1366px;
            height: 600px;
            background-image: url(./images/bg.jpg);
            margin: 0 auto;
            overflow: hidden;
        }
        
        .son1, .son2 {
            width: 50%;
            height: 600px;
            background-image: url(./images/fm.jpg);
            transition: all .5s;
        }

        .son2 {
            background-position: right 0;
        }

        .father:hover .son1 {
            transform: translate(-100%);
        }

        .father:hover .son2 {
            transform: translate(100%);
        }
    </style>
</head>
<body>
    <div class="father">
        <div class="son1"></div>
        <div class="son2"></div>
    </div>
</body>
</html>